//
//  ViewController.swift
//  lesson12 构造方法
//
//  Created by 张建 on 2018/3/16.
//  Copyright © 2018年 micheal. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
//        let student = Student(name: "zhangjian", age: 25)
//        student.name = "tangqian"
//        student.age = 24
//        print(student.name)
//        print(student.age)
        
        let student = Student(dic:["name":"zhangjian","age":24])
        print(student.name)
        print(student.age)
        
        
    }

}

